package com.springConfig;

import com.dao.IStudentDao;
import com.dao.impl.StudentMySqlDao;
import com.service.IStudentService;
import com.service.impl.StudentServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

//javaConfig
@Configuration // beans
//@Import(ClassesConfig.class)
@ComponentScan(basePackages = "com.*")
public class ApplicationContextConfig {

   /* @Bean
   public IStudentService getStudentSevice(){
        StudentServiceImpl studentService = new StudentServiceImpl();

        //studentService.setiStudentDao(this.getStudentMysqlDao());

        return studentService;

   }*/

  /* @Bean
   public IStudentDao getStudentMysqlDao(){
        return new StudentMySqlDao();
   }
*/

}
